import request from "@/utils/request";
import {
    barInter,
    pieInter,
} from '@/api/Home/HomeRequest';

// 首页的请求

//首页顶部每日访问
function getIndexEcharts() {
    return request({
        url: '/system/index/data',
        method: 'get'
    });
}

//首页柱状图
function getIndexBar(params: barInter) {
    return request({
        url: '/system/index/bar',
        method: 'get',
        params
    });
}

//首页饼状图
function getIndexPie(params: pieInter) {
    return request({
        url: '/system/index/pie',
        method: 'get',
        params
    });
}

//首页列表数据
function getIndexList() {
    return request({
        url: '/system/index/table',
        method: 'get'
    });
}

export { getIndexEcharts, getIndexBar, getIndexPie, getIndexList };
